<script setup>
import Child from '../components/项目三/Child.vue';

function showMsg(){
  console.log("触发了自定义事件...")
}
</script>

<template>
  <Child @Myevent="showMsg"></Child>
</template>